<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="root"></div>
    <script src="../../js/react.js" charset="utf-8"></script>
    <script src="../../js/react-dom.js" charset="utf-8"></script>
    <script src="../../js/browser.min.js" charset="utf-8"></script>

    <script type="text/babel">
    function NumberList(props) {
        const numbers = props.numbers;
        const listItems = numbers.map((number) =>
        <li key={number.toString()}>
          {number}
        </li>
        );
        return (
        <ul>{listItems}</ul>
        );
        }

        const numbers = [1, 2, 3, 4, 5];
        ReactDOM.render(
        <NumberList numbers={numbers} />,
        document.getElementById('root')
        );
    </script>
</body>
</html>
